package group32.client;

import java.util.ArrayList;


import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import group32.client.CircleService;
import group32.client.CircleServiceAsync;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("circle")
public interface CircleService extends RemoteService {
	public static class Util {
		private static CircleServiceAsync instance;
		public static CircleServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(CircleService.class);
			}
			return instance;
		}
	}
	public ArrayList<String> getRelation(int userID) throws IllegalArgumentException;
	public void insertCircles(String name, int id) throws IllegalArgumentException;
	public ArrayList<String> insertFriends(int uid,String name)throws IllegalArgumentException;
	public void delCir(String name, int uid) throws IllegalArgumentException; 
}
